import axios from "../../util/request"

export function Table(val) {
    return axios({
        data: val,
        method: "GET",
        url: `/adminapi/marketing/coupon/list?status=${val.status}&title=${val.title}&page=${val.page}&limit=${val.limit}`,
    })
}

export function addlist(val) {
    return axios({
        data: val,
        method: "post",
        url: `/adminapi/marketing/coupon/save.html`,
    })
}

export function kaiguan(val) {
    return axios({
        data: val,
        method: "put",
        url: `/adminapi/marketing/coupon/status/${val.id}`,
    })
}

export function del(val) {
    return axios({
        data: val,
        method: "DELETE",
        url: `/adminapi/marketing/coupon/del/${val.id}`,
    })
}
